export interface ResponseData{
    code:number,
    message:string,
    ok:boolean
}
//菜单数据与按钮数据ts类型
export interface Permission{
    "id"?: number,
    "createTime": string,
    "updateTime": string,
    "pid": number,
    "name": string,
    "code": string,
    "toCode": string,
    "type": number,
    "status": null,
    "level": number,
    "children"?: PermissionList,
    "select": boolean
}

export type PermissionList = Permission[]
//菜单接口返回数据类型

export interface PermisstionResponseData extends ResponseData{
    data:PermissionList
}
//添加按钮接口
export interface AddPermission {
    id?:number|string
    code:string,
    level:number|string,
    name:string,
    pid:number|string
}